package zhihuilan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import zhihuilan.dto.MySearchDto;
import zhihuilan.dto.PageDto;
import zhihuilan.dto.WxMiniPageDto;
import zhihuilan.entity.MySearch;
import zhihuilan.params.query.MySearchQueryParam;

import java.util.List;
import java.util.Map;

public interface MySearchService {

  // WxMiniPageDto<MySearchDto> getSearchList(MySearchQueryParam mySearchQueryParam, List keywordList);

   WxMiniPageDto<MySearchDto> getSearchList(MySearchQueryParam mySearchQueryParam,List<Integer> strings);

   Map getSearchIndexList(MySearchQueryParam mySearchQueryParam, List keywordList);

   WxMiniPageDto<MySearchDto> getSearchShopList(MySearchQueryParam mySearchQueryParam, List keywordList);

   Map getSearchShopGoodsList(MySearchQueryParam mySearchQueryParam, List keywordList);

   MySearch addEntity(MySearch entity);

   MySearch updateEntity(MySearch entity);

   Boolean deleteByTableAndId(String tableName, Integer pid);
   Boolean deleteByTableAndFid(String tableName, Integer pid, Integer fid, Integer staffId);

   MySearch updateEntityToTable(MySearch entity);
}
